package com.felight.ems.strings;
import java.lang.String.*;
import java.util.*;

class StrArray{
	public static void main(String[] args){
		String[] eid = new String[5];
		String[] eid1 = new String[eid.length];
		
		eid[0]="ankitha.parameswara@gmail.com";
		eid[1]="abc@yahoo.com";
		eid[2]="xyz@gmail.com";
		eid[3]="anki@gmail.com";
		eid[4]="pqr@gmail.com";
		Arrays.sort(eid);
		for(int i=0;i<eid.length;i++){
			if(eid[i].contains("gmail")){
				eid1[i]=eid[i];
				System.out.println(eid1[i]);
			}
		}
	}
}